package com.ruoyi.business.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.Accessors;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@Builder
@AllArgsConstructor
@NoArgsConstructor
@ApiModel("教练")
public class Coach extends BaseEntity {
    /** 教练id */
    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value = "教练id")
    private Long id;

    /** 教练名称 */
    @Excel(name = "教练名称")
    @ApiModelProperty(value = "教练名称")
    private String name;

    @Excel(name = "手机号码")
    @ApiModelProperty(value = "手机号码")
    private String phone;

    @Excel(name = "性别", readConverterExp = "0=未知，1=男，2=女")
    @ApiModelProperty(value = "性别")
    private int sex;

    /** 教练图片 */
    @Excel(name = "教练图片")
    @ApiModelProperty(value = "教练图片")
    private String images;

    /** 教练图片 */
    @Excel(name = "教练")
    @ApiModelProperty(value = "教练图片")
    private String album;

    @Excel(name = "教练状态", readConverterExp = "0=正常,1=停用")
    @ApiModelProperty(value = "教练状态")
    private String status;
    /** 更新者 */
    @Getter
    private String createBy;

    public void setCreateBy(String createBy)
    {
        this.createBy = createBy;
    }

    /** 更新者 */
    @Getter
    private String updateBy;

    public void setUpdateBy(String updateBy)
    {
        this.updateBy = updateBy;
    }
}
